/* eslint-disable*/
import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import '@/qing/qing.js'
import '@/assets/icon.svg'
import '@/utils/RemAdjust'
import '@/assets/common.less'
import '@/assets/common.css'
import '@/assets/reset.css'
import router from './router'
import store from './store'
import './plugins/vant.js'
import '@/filters/index.js'

import Mixins from '@/globalMixin/index.js'
import '@/assets/svg.js'
import {translate} from "@/utils/helper.js"
import { ToastPlugin } from '@/plugins/Toast/index.js'

import { ActionPlugin } from '@/plugins/MactionSheet/index'
import '@/drectives/index'

// import watermark from '@teamtalk/watermark'

// 埋点
import imbedapi from './api/imbedApi'

Vue.use(ActionPlugin)

// 多语言
Vue.prototype.$lang = translate()

// 水印
// Vue.prototype.$watermark = watermark

// 线上注意关掉
import Vconsole from 'vconsole'

// try{
    // if(process.env.NODE_ENV != 'production'){
        // const vConsole = new Vconsole()
        // Vue.use(vConsole)
    // }
// }catch{
//     console.warn("process.env.NODE_ENV != production  is error ")
// }


Vue.use(ToastPlugin)
Vue.prototype.$eventBus = new Vue();
Vue.config.productionTip = false
Vue.mixin(Mixins)

//埋点
Vue.prototype.$imbedapi = imbedapi;

// const main = async () => {
    //   if (process.env.NODE_ENV !== 'production') {
    //     const login = await loginOnDev()
    //     const ticket = await getTicketOnDev()
    //     env.ticket = ticket
    //   }
    new Vue({
        router,
        store,
        render: (h) => h(App)
    }).$mount('#app')
// }

// main()

